package sedev.shopping.entities;

// Generated Nov 9, 2011 10:06:30 PM by Hibernate Tools 3.4.0.CR1

/**
 *             This class SanPham
 *         
 */
public class SanPham implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	public static final String Table = "sedev_san_pham";
	private Long id;
    private Long userId;
    private Long nhomSanPhamId;
    private Long loaiSanPhamId;
    private String maSanPham;
    private String tenSanPham;
    private Long giaSanPham;
    private Long giaKhuyenMai;
    private String donViGia;
    private Boolean daTinhThue;
    private String thuocTinh;
    private String noiDung;
    private String hinhAnh;
    private Integer vip;
    private String danhGia;
    private Boolean hienThi;
    private Long ngayDang;
    private Long ngayHetHan;
    private String tenNguoiLienHe;
    private String diaChiNguoiLienHe;
    private String phoneNguoiLienHe;
    private String emailNguoiLienHe;
    private Integer luotXem;

    public SanPham() {
    }

    public SanPham(Long userId, Long nhomSanPhamId, Long loaiSanPhamId
    		, String maSanPham, String tenSanPham, Long giaSanPham
    		, Long giaKhuyenMai, String donViGia, Boolean daTinhThue
    		, String thuocTinh, String noiDung, String hinhAnh, Integer vip
    		, String danhGia, Boolean hienThi, Long ngayDang, Long ngayHetHan
    		, String tenNguoiLienHe, String diaChiNguoiLienHe, String phoneNguoiLienHe
    		, String emailNguoiLienHe, Integer luotXem) {
        this.userId = userId;
        this.nhomSanPhamId = nhomSanPhamId;
        this.loaiSanPhamId = loaiSanPhamId;
        this.maSanPham = maSanPham;
        this.tenSanPham = tenSanPham;
        this.giaSanPham = giaSanPham;
        this.giaKhuyenMai = giaKhuyenMai;
        this.donViGia = donViGia;
        this.daTinhThue = daTinhThue;
        this.thuocTinh = thuocTinh;
        this.noiDung = noiDung;
        this.hinhAnh = hinhAnh;
        this.vip = vip;
        this.danhGia = danhGia;
        this.hienThi = hienThi;
        this.ngayDang = ngayDang;
        this.ngayHetHan = ngayHetHan;
        this.tenNguoiLienHe = tenNguoiLienHe;
        this.diaChiNguoiLienHe = diaChiNguoiLienHe;
        this.phoneNguoiLienHe = phoneNguoiLienHe;
        this.emailNguoiLienHe = emailNguoiLienHe;
        this.luotXem = luotXem;
    }

    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getUserId() {
        return this.userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getNhomSanPhamId() {
        return this.nhomSanPhamId;
    }

    public void setNhomSanPhamId(Long nhomSanPhamId) {
        this.nhomSanPhamId = nhomSanPhamId;
    }

    public Long getLoaiSanPhamId() {
        return this.loaiSanPhamId;
    }

    public void setLoaiSanPhamId(Long loaiSanPhamId) {
        this.loaiSanPhamId = loaiSanPhamId;
    }

    public String getMaSanPham() {
        return this.maSanPham;
    }

    public void setMaSanPham(String maSanPham) {
        this.maSanPham = maSanPham;
    }

    public String getTenSanPham() {
        return this.tenSanPham;
    }

    public void setTenSanPham(String tenSanPham) {
        this.tenSanPham = tenSanPham;
    }

    public Long getGiaSanPham() {
        return this.giaSanPham;
    }

    public void setGiaSanPham(Long giaSanPham) {
        this.giaSanPham = giaSanPham;
    }

    public Long getGiaKhuyenMai() {
        return this.giaKhuyenMai;
    }

    public void setGiaKhuyenMai(Long giaKhuyenMai) {
        this.giaKhuyenMai = giaKhuyenMai;
    }

    public String getDonViGia() {
        return this.donViGia;
    }

    public void setDonViGia(String donViGia) {
        this.donViGia = donViGia;
    }

    public Boolean getDaTinhThue() {
        return this.daTinhThue;
    }

    public void setDaTinhThue(Boolean daTinhThue) {
        this.daTinhThue = daTinhThue;
    }

    public String getThuocTinh() {
        return this.thuocTinh;
    }

    public void setThuocTinh(String thuocTinh) {
        this.thuocTinh = thuocTinh;
    }

    public String getNoiDung() {
        return this.noiDung;
    }

    public void setNoiDung(String noiDung) {
        this.noiDung = noiDung;
    }

    public String getHinhAnh() {
        return this.hinhAnh;
    }

    public void setHinhAnh(String hinhAnh) {
        this.hinhAnh = hinhAnh;
    }

    public Integer getVip() {
        return this.vip;
    }

    public void setVip(Integer vip) {
        this.vip = vip;
    }

    public String getDanhGia() {
        return this.danhGia;
    }

    public void setDanhGia(String danhGia) {
        this.danhGia = danhGia;
    }

    public Boolean getHienThi() {
        return this.hienThi;
    }

    public void setHienThi(Boolean hienThi) {
        this.hienThi = hienThi;
    }

    public Long getNgayDang() {
        return this.ngayDang;
    }

    public void setNgayDang(Long ngayDang) {
        this.ngayDang = ngayDang;
    }

    public Long getNgayHetHan() {
        return this.ngayHetHan;
    }

    public void setNgayHetHan(Long ngayHetHan) {
        this.ngayHetHan = ngayHetHan;
    }

    public String getTenNguoiLienHe() {
        return this.tenNguoiLienHe;
    }

    public void setTenNguoiLienHe(String tenNguoiLienHe) {
        this.tenNguoiLienHe = tenNguoiLienHe;
    }

    public String getDiaChiNguoiLienHe() {
        return this.diaChiNguoiLienHe;
    }

    public void setDiaChiNguoiLienHe(String diaChiNguoiLienHe) {
        this.diaChiNguoiLienHe = diaChiNguoiLienHe;
    }

    public String getPhoneNguoiLienHe() {
        return this.phoneNguoiLienHe;
    }

    public void setPhoneNguoiLienHe(String phoneNguoiLienHe) {
        this.phoneNguoiLienHe = phoneNguoiLienHe;
    }

    public String getEmailNguoiLienHe() {
        return this.emailNguoiLienHe;
    }

    public void setEmailNguoiLienHe(String emailNguoiLienHe) {
        this.emailNguoiLienHe = emailNguoiLienHe;
    }

    public Integer getLuotXem() {
        return this.luotXem;
    }

    public void setLuotXem(Integer luotXem) {
        this.luotXem = luotXem;
    }
	
	public static enum Properties{
		id
		,user_id
		,nhom_san_pham_id
		,loai_san_pham_id
		,ma_san_pham
		,ten_san_pham
		,gia_san_pham
		,gia_khuyen_mai
		,don_vi_gia
		,da_tinh_thue
		,thuoc_tinh
		,noi_dung
		,hinh_anh
		,vip
		,danh_gia		
		,hien_thi
		,ngay_dang
		,ngay_het_han
		,ten_nguoi_lien_he
		,dia_chi_nguoi_lien_he
		,phone_nguoi_lien_he
		,email_nguoi_lien_he
		,luot_xem
	}

}
